<div class="col-md-2 col-sm-2 col-xs-2">
  <div class="info-box">
  {% if job_failure or job_unexecuted %}
    <span class="info-box-icon bg-red">{{ dbname }}</span>
  {% else %}
    <span class="info-box-icon bg-green">{{ dbname }}</span>
    {% endif %}


    <div class="info-box-content">
       {% if job_failure_items %}
        <span class="info-box-number">
         {% for i in job_failure_items %}
            <span style="color: red;">{{ i  }}</span>
        {% endfor %}
        </span> 
        {% endif %} 

        {% if job_unexecuted_items %}
        <span class="info-box-number">
         {% for i in job_unexecuted_items %}
            <span style="color: blue;">{{ i  }}</span>
        {% endfor %}
        </span> 
        {% endif %} 
      
      <span class="info-box-number"> 
        <span style="color: green"> 成功 : {{ job_success  }}</span>
      </span>    
    </div> 
    
 
  </div> 
</div> 

<script type="text/javascript">
if(intel == -1){
  intel = setInterval(function(){
    $('.item-detail').toggle()
  } ,  10000)
}

</script>